package com.third.device.mg.serialport

import com.third.device.mg.serialport.factory.autorail.AutorailsFactory
import com.third.device.mg.serialport.factory.forick.ForickFactory
import com.third.device.mg.serialport.factory.haobo.BaseHaoBoProduct
import com.third.device.mg.serialport.factory.haobo.HaoBoFactory
import com.third.device.mg.serialport.factory.jiecang.JieCangFactory
import com.third.device.mg.serialport.factory.lemanli.LeManLiFactory
import com.third.device.mg.serialport.factory.oupaike.OuPaiKeFactory

/**
 * company 广东玛格家居有限公司
 * @author smoker
 * @Date 2021/12/22
 * Description:玛格串口服务通讯类
 */
class MGSerialPort private constructor(){

    companion object {
        const val BASE_TAG = "MGSerialPort"
        val instance = MGSerialPortHolder.holder
    }
    private object MGSerialPortHolder{
        val holder = MGSerialPort()
    }


    /**
     * 弗雷克厂家
     *
     */
    fun getForick():ForickFactory = ForickFactory()

    /**
     * 奥特威厂家
     */
    fun getAutorails() = AutorailsFactory()

    /**
     * 乐满利厂家
     */
    fun getLeManLi() = LeManLiFactory()

    /**
     * 捷昌电机厂家
     */
    fun getJieCang() = JieCangFactory()

    /**
     * 欧派克智能家具厂家
     */
    fun getOuPaiKe() = OuPaiKeFactory()

    /**
     * 浩博红外
     */
    fun getHaoBo() = HaoBoFactory()


}